import request from '@/axios/axios.js'

// 查询
export const searchApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/dmsBackupLocationConfig/queryPage',
        data: params
    })
}

// 增加
export const addApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/dmsBackupLocationConfig/add',
        data: params
    })
}

// 编辑
export const editApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/dmsBackupLocationConfig/edit',
        data: params
    })
}

// 删除
export const deleteApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/dmsBackupLocationConfig/deleteBatch',
        data: params
    })
}
// 导出
export const  exportApi= (params) => {
    return request({
        method: 'post',
        url: '/dms/dmsBackupLocationConfig/export',
        responseType: 'blob',
        data: params
    })
}


// 下载模板
export const templateApi= (params) => {
    return request({
        method: 'post',
        url: '/dms/dmsBackupLocationConfig/backupLocationConfigTemplate',
        responseType: 'blob',
        data: params
    })
}



